package plantmon.entity.item;

import java.awt.image.BufferedImage;
import javax.swing.JFrame;
import javax.swing.JPanel;
import plantmon.entity.Item;

public class WarItem extends Item{
    int HPStatus;
	
    public WarItem(int IDitem, JPanel panel) {
        //gambar = new ImageEntity(panel);
        IDItem = IDitem;
        if (IDitem == Water) {
            name = "Water";
            costBuy = 100;
            HPStatus = 100;
            //gambar.load(null);
        } else if (IDitem == HolyWater) {
            name = "Holy Water";
            costBuy = 500;
            HPStatus = 500;
            //gambar.load(null);
        } else if (IDitem == Antitoxin) {
            name = "Antitoxin";
            costBuy = 200;
            HPStatus = 0;
            //gambar.load(null);
        } else if (IDitem == EyeDrop) {
            name = "Eye Drop";
            costBuy = 250;
            HPStatus = 0;
            //gambar.load(null);
        } else if (IDitem == HotWater) {
            name = "Hot Water";
            costBuy = 250;
            HPStatus = 0;
            //gambar.load(null);
        }
        costSell = costBuy / 2;
    }
    public void draw() {
//        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void update() {
//        throw new UnsupportedOperationException("Not supported yet.");
    }

        public static void main(String[] str){
        JFrame frame=new JFrame();
        BufferedImage bf = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);
        WarItem a = new WarItem(Item.Antitoxin, new JPanel());
        frame.getContentPane().add(a.get_Info());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(400, 500);
        frame.setVisible(true);
    }
}
